package com.yulan.bankback.service.bank;

import net.ipip.ipdb.IPFormatException;

import java.io.IOException;

public interface AuthService {

    String verifyPassword(String account, String password);

    String getToken(String account);

    void removeToken(String uid);

    boolean verifyToken( String token);

    boolean verifyPayPassword(String uid, String payPassword);

    String register(String username, String account, String password,
                    String payPassword, String phone, String bornDate);

    void insertLoginEvent(String uid, String ip, String type);

    String[] checkRemoteLogin(String uid, String ip) throws IPFormatException, IOException;
}
